package patrol.mobile.com.mobilepatrol.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.JobEvaluationInformationBean;

/**
 * Created by K on 2018/9/14.
 * des: 考核明细
 */
public class EvaluationDetailAdapter extends BaseQuickAdapter<JobEvaluationInformationBean.OrgPostItemListBean> {
    public EvaluationDetailAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_evaluation_detail;
    }

    @Override
    protected void convert(BaseViewHolder holder, JobEvaluationInformationBean.OrgPostItemListBean item) {
        holder.setText(R.id.tv_num,holder.getAdapterPosition()+1+"");
        holder.setText(R.id.tv_title,item.getProSmall());
    }
}
